// components/Popup/Popup.js
var Login = require("../../Controls/Login")

function show()
{
  this.setData({isShow:true});
}

function hide()
{
  this.setData({ isShow: false });
}

function _yesEvent()
{
  this.setData({ isShow: false })
  this.triggerEvent("yesEvent");
}

function _noEvent()
{
  this.setData({ isShow: false })
  this.triggerEvent("noEvent");
}

var properties = 
{

}

var data = 
{
  isShow:false,
}

var methods = 
{
  show,
  hide,
  _noEvent,
  _yesEvent
}

var options = 
{
  data,
  properties,
  methods,
}

Component(options)
